import Vue from 'vue'
import Router from 'vue-router'
import detail from "@/components/Detail";
import index from "@/components/Index";
import Add from "@/components/Add";
Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'index',
            component: index
        },
        {
            path: '/detail',
            name: 'detail',
            component: detail
        },
        {
            path: '/add',
            name: 'add',
            component: Add
        }
    ]
})